package com.buddy.learn.spring.framework.beans.config;

/**
 * 通知器，Spring中是一个接口
 */
public class BBeanPostProcessor {
    //为在Bean的初始化前提供回调入口
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
        return bean;
    }

    //为在Bean的初始化之后提供回调入口
    //TODO AbstractAutoProxyCreator 创建AOP代理对象(AOP入口)
    public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
        return bean;
    }
}
